generator: Deduplicate ostree= karg parsing
authorColin Walters <walters@verbum.org>
Mon, 17 Jul 2023 17:48:35 +0000 (13:48 -0400)
committerColin Walters <walters@verbum.org>
Tue, 18 Jul 2023 12:29:09 +0000 (08:29 -0400)
commit6966979c5e3a216fccfb3312e11cb959ac4e4b30
tree37d4a2d5b88e7beca3a5be6ff9845febb92eb502
parent1c0fd7d458066a965244c4551903e48b8e10359b
generator: Deduplicate ostree= karg parsing

Avoid having two copies of a regular expression for parsing
the `ostree=` kernel argument.  Because the `ostree-system-generator`
binary already has access to the internals because it's implemented
in the shared library, expose the sysroot version internally
and use that.

Motivated by an attempt to change one of these copies but not
the other.
src/libostree/ostree-impl-system-generator.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c